﻿<Window x:Class="BatteryUptime.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Battery Uptime Monitor" Height="190" Width="270" ResizeMode="CanMinimize" Icon="/Images/battery_075.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="35" />
            <RowDefinition Height="25" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Menu IsMainMenu="True">
            <MenuItem Header="_File">
                <MenuItem x:Name="ExitMenuItem" Header="_Exit" />
            </MenuItem>
            <MenuItem Header="_Help">
                <MenuItem x:Name="AboutMenuItem" Header="_About" />
            </MenuItem>
        </Menu>

        <!-- Row #1 -->
        <ProgressBar x:Name="BatteryStatusProgressBar" Grid.Row="1" Maximum="100" Minimum="0" HorizontalAlignment="Stretch" VerticalAlignment="Center" Height="25" />
        <TextBlock x:Name="BatteryPercentText" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="15" FontWeight="Bold" />

        <!-- Row #2 -->
        <StackPanel Orientation="Horizontal" Grid.Row="2">
            <TextBlock Text="Status:" />
            <TextBlock x:Name="PluginStatusTextBlock" Text="Charging..." Margin="8,0,0,0" />
        </StackPanel>
        
        <!-- Row #3 -->
        <StackPanel Orientation="Vertical" Grid.Row="3">
            <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
                <TextBlock Text="Device has been on for " FontSize="14" />
                <TextBlock x:Name="MinutesOnTextBlock" Text="5 minutes" FontSize="14" Margin="3,0,0,0" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
                <TextBlock Text="Time since last full charge: " FontSize="14" />
                <TextBlock x:Name="TimeLastChargeTextBlock" Text="5 minutes" FontSize="14" Margin="3,0,0,0" />
            </StackPanel>
            <TextBlock x:Name="HasBeenPluggedInTextBlock" Text="Your computer has been plugged in since the last full charge" FontSize="10" TextWrapping="Wrap" />
        </StackPanel>
    </Grid>
</Window>
